home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / networke / xfirepow.000 / xfirepow / xfirepower-0.84 / client / libsprite / scale.c < prev    next >
C/C++ Source or Header  |  1995-05-23  |  292b  |  18 lines

  1. #include "allincludes.h"
  2.  
  3. void
  4. W_TranslatePoints(window, x, y)
  5.     int    *x, *y;
  6.     W_Window window;
  7. {
  8.     struct window *win;
  9.     win = W_Void2Window(window);
  10.  
  11.     if (win->type == WIN_TEXT) {
  12.     *y = (*y - MENU_PAD) / W_Textheight;
  13.     *x = (*x - MENU_PAD) / W_Textwidth;
  14.     }
  15.     return;
  16. }
  17.  
  18.